ShowLinkSourceInfo
Mac OSThe
ShowLinkSourceInfo
method displays the Link Source Info dialog box for this link-source object.
ODBoolean ShowLinkSourceInfo ( in ODFacet facet, in ODUpdateID change, in ODBoolean changesAllowed, out ODLinkInfoResult infoResult);
facet
- A reference to the facet displaying the selected link source.
change
- The update ID of the source part's source content.
changesAllowed
- kODTrue if the user may change characteristics of this link-source object, otherwise
kODFalse
.infoResult
- A structure reflecting the user's selections in the Link Source Info dialog box.
- return value
kODTrue
if the user did not cancel the Link Source Info dialog box, otherwisekODFalse
.DISCUSSION
You call this method in your part'sHandleEvent
method when the user selects the Link Info item from the Edit menu and the current selection is the border of a link source.If the
change
parameter is different from this link-source object's current update ID (as returned by theGetUpdateID
method), this link-source object does not have the most recent source content. This situation should occur only if the update mode is manual. In that case, the Update Now button is enabled to allow the user to request the link source to be updated from the source part.Part viewers (as opposed to part editors) should pass false for the
changesAllowed
parameter. Changes are disabled automatically if the draft is read only.The Link Source Info dialog box displays the part kind of the linked data, together with the dates and times of its creation and last update. The dialog box lets the user set the link update mode to automatic (On Save) or manual. The user can also break the link or request an immediate update from the source part to this link-source object.
If the user exits the Link Source Info dialog box by clicking a button other than Cancel, this method returns true and you should examine the
action
field of theinfoResult
output parameter to determine what action to take in response to the user's selections.
If the user cancels the Link Source Info dialog box, this method returns false and you do not need to take any further action.
- If the
action
field iskODLinkInfoBreakLink
, your part should relinquish ownership of this link-source object. This operation should be undoable.- If the
action
field iskODLinkInfoUpdateNow
, you should update this link-source object from your part's content and call theContentUpdated
method. This action should not be undoable in view of the part's difficulty in restoring the previous link content.- If the
action
field iskODLinkInfoOk
, you should examine theautoUpdate
field of theinfoResult
output parameter. If theautoUpdate
field indicates a change to the update mode for this link-source object (as obtained by calling theIsAutoUpdate
method), you should call theSetAutoUpdate
method to change the update mode. This operation should not be undoable.
EXCEPTIONS
kODErrBrokenLink
- Internal error; this link-source object disconnected from its destinations.
kODErrNullFacetInput
- The
facet
parameter is null.kODErrNullLinkInfoResultInput
- The
infoResult
parameter is null.SEE ALSO
TheODLinkInfoAction
type (page 923).
TheODLinkInfoResult
type (page 924).
TheODUpdateID
type (page 917).
TheODLink::ShowLinkDestinationInfo
method (page 357).
TheODLinkSource::ContentUpdated
method (page 378).
TheODLinkSource::GetUpdateID
method (page 381).
TheODLinkSource::IsAutoUpdate
method (page 381).
TheODLinkSource::SetAutoUpdate
method (page 384).
"Selection Info" on page 252 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help